package org.apogee.mil.client.utils;

import java.util.ArrayList;
import java.util.HashMap;

import org.apogee.mil.shared.Constants.ServerConfigFields;

import com.extjs.gxt.ui.client.data.BaseModel;

public class ServerConfig {
	
	
	private static HashMap<String, String> config = new HashMap<String, String>();
	
	
	public static void loadConfig(ArrayList<BaseModel> conf) {
		for (BaseModel bm : conf) {
			String key = bm.get(ServerConfigFields.PROPERTY);
			String val = bm.get(ServerConfigFields.VALUE);
			
			config.put(key, val);
		}
	}
	
	public String getValue(String key) {
		return config.get(key);
	}

}
